package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户消费明细表
 * </p>
 *
 * @author Shane
 * @since 2019-08-23
 */
@TableName("user_consume_log")
public class UserConsumeLog implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private Integer userId;

	/**
	 * 类型，0-视频通话  1-解锁动态  2-文字聊天  3-文字聊天赠送礼物  4-动态赠送礼物  5-视频通话赠送礼物
	 */
	@TableField(value = "`type`")
	private Integer type;

	/**
	 * 被赠送者id
	 */
	@TableField(value="to_user_id")
	private Integer toUserId;

	/**
	 * 购买id
	 */
	@TableField(value="buy_id")
	private String buyId;

	/**
	 * 金币数量
	 */
	private Integer coin;

	/**
	 * 积分数量
	 */
	private Double credit;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	public UserConsumeLog() {
	}

	public UserConsumeLog(Integer userId, Integer type, Integer toUserId, String buyId, Integer coin, Double credit) {
		this.userId = userId;
		this.type = type;
		this.toUserId = toUserId;
		this.buyId = buyId;
		this.coin = coin;
		this.credit = credit;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getToUserId() {
		return toUserId;
	}

	public void setToUserId(Integer toUserId) {
		this.toUserId = toUserId;
	}

	public String getBuyId() {
		return buyId;
	}

	public void setBuyId(String buyId) {
		this.buyId = buyId;
	}

	public Integer getCoin() {
		return coin;
	}

	public void setCoin(Integer coin) {
		this.coin = coin;
	}

	public Double getCredit() {
		return credit;
	}

	public void setCredit(Double credit) {
		this.credit = credit;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
